Fixed my code above, which wasn't correct :)