Moving as a separate function.