Command framework and utils