Attempted fix. Lets register the command after all data has been inserted into the command