Variables need to be public if the UI is to work right.

Only set timeouts if we hae specified them.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>