Made MAC command working