Fixed the errors in the untested version. Works!