Added utility method to build Intent.