Add delay param to setState