Merged #29 as it works. But there has to be a better solution to it. @sudheesh001 not a priority, but please get back to this whenever.