Added blank detection and tweaked