Reduced number of clock schedule function calls

Error when unknown shape is defined now handled gracefully