Prepped code for use as a gem