Basic function.