Finally got it sorted