Added support for older ruby versions