Introduce sml as a enviroment option. Closes #31