Added helper functions