Cross posted and solved here.