Added commit to production method. Refactor some variable names.