In reply to sharan785:
I do not see your final code. In the EDAPlayground link I see only your old code.