Replicated

Replicated the original functionality, without the save and export
functions