Updated for new MC version