OK, fixed it. The other functions I've included are fine?