Made environment optional, if none is given. Only default will be used