Finally got the code cracked