Implemented plug-in functions.