Removing unnecessary resources.