Adding cursor timeout, fixes #252