Some base functions.