Adapting into proper gem form.