+Added bounds detection at first step