Parameterizing week. Adding error for missing parameters.