Changed around the code alittle to make better sense