Make delay configurable