Implements base functions.