How to reduce the lags?