Changes command holding data structure to hash - supports lookup by id