Added debugging code, command structure with commands (debug, limit), time filtering, ability to do any action