Modified package require

Need to submit in 2014.1 and HEAD