Changed apply for timeout in order to prevent digest cycle erros.