Implement basic functions.