Reorganizing functions.