UPD: improved performance thanks to kodion