Updated function for ES_input configuration