Added helper function.