Made status block optional (pass NULL).