added queue and lock delay