Changed the RestCallback to an interface