First version works fine. Little bit slow.