Yes, rpconnect is right. The only delay is with the sleep var. And even one could control this variable via the surrounding j2me app, say to change it dynamically. If there is more user action the value could be decreased and vice versa.