Function must return handles
first_is_mean is in update_parameters now