Fix guard syntax
Switch to line oriented socket mode