Hookup change function.