Implemented Motion detector changed methods
Fixed debugging crash