More work on functions.