Doesnt work efficiently