Renaming 'delete' function to 'remove' (reserved keyword alert)