Wrapper around the Mega API