Tested and fixed gradient detector, now works 100% more than before!