Performing some cleanup.