WIP on functions.