Added a more flexible way of pulling commands from .cfg files while maintaining compatability.