Cleanup of initialize code.