Added remaining functions.
Fixed typo on exception.