Removed extra space. Made speed improvements.