Changed typing timeout to 5 seconds and fixed identation