Moved utils from crows nest here