Script mostly working, needs to be checked for errors