Implemented prototype functions