Moved here from gists.