Magus basic code