Whitespace and mode cleanup
Set timeouts when connecting
Clean up permissions
Clean up permissions