Use yaml file instead of overwriting ruby code.