Search with dirty hacks done. Need refactor the  code.