Finally got it! Kudos to Melloware developer for sharing his code