Moved SQF code generation from SQM class to SQF class.