Solved 5 and 6 and updated my getProblem script slightly.