added support for delays to comp. func.