add timeout configuration in opts. Default: 1000

I think it should have a possibility to change timeout