# ST-PRR-004 - Hardcoded Delay Activity

> **Rule ID**: `ST-PRR-004`

**Rule ID**: `ST-PRR-004`

**Scope**: Workflow

## Description

The rule checks whether [The Delay Activity](the-delay-activity.md) is overly used. This activity may affect performance, and thus its use should be limited.

## Recommendation

Consider using other mechanisms to wait for application states like use timeout/appear/exist instead of hardcoded delays. For more about synchronization, refer to the [UI Automation](ui-automation.md#ui-synchronization) page.

![docs image](https://dev-assets.cms.uipath.com/assets/images/studio/studio-167753-bcdc6bc4.webp)
