Implemented functions.