Try reducing latency by cleaning up code