Implemented next function for action