Added helper functions from the old processor