Implemented stop trip functionality