Finally got a solution.