Specify delay in ms with an upper limit of 10000