Removing unnecessary objects