Added guard
Refactored a bit prerequisites parser