Added makeIntent() factory method.