Started implementing the functions.