Check prerequisites.