Implemented instance functions.