Implementing functions (1).