Implemented more functions.