Replaced ruby 1.9 hash syntax to maintain 1.8 compatability.