$message is only initialized in line 93 inside the if statement. 
Oh lord - I want my compilers back :imp: