Gets the job done, nothing special and not the cleanest