Merge env and options. Closes #1