Refactored code to generate artifacts for archiving .