Compatible with Ruby1.8