Changed Set function.