MOB-311 Moved orig variable for clarity