Initial sqim code