Performs minor cleanup.