Getting really annoyed, should've written my own script