Replaced local Authentication stuff with that from MMK.