Added helper functions.