LOC algorithm. Issue 4 (28th October 2014)