Updated Gem File with thread_safe