Added function create_opener(). Cleanup.