Updated to fit the new alice api