Added empty callbacks to make callbacks optional.

Also fixed a syntax error.