Added callbacks to Activity.