Create cutomLogic