Change item function.