You should check that required options are set to prevent notice errors.