Removed redundant first/last commands.