Added a few functions.