Change frequency to environment variable