Added functionality to assembler.pl