Implemented break function