Write selection and change function names