[NCSF] Implemented the random, variable, and conditional commands. Also fixed loop counter.