Added 'callback' parameter to custom activities.