Implemented check out functionality.