Adding max input to 'list' action. Adding cache to to 'last' action.