Command files, subroutines for drawing