Add error checking on options before adding to tray.