Added object recognition. VERY SLOW AND BUGGY