Implemented stop() method