* Copy-paste of files from original gem * Update copied code to match repo style * Use the lib instead of the gem