Moving function to make diff nicer.