added $cronminute and $cronhour to params, and added validation in init.