A quick and dirty copy, don't fork this one it lacks the real history.