Grabbed stuff from my old Grep project.