Added implementation of needed functions.