Implemented boundary chase logic