Changed Api to 164 and fixed command system