Implemented the most simple functions.