Added a number of helper functions / enums.