Sorted it all out. Had to delete a few files and reinstall the agent again.