Made YEAR environment parameter optional.