adding support for auto mode, which performs the fire command the number of times specified (or defaults to 3)