Added two useful typedefs, public api methods.