Implemented more routines.