This worked brilliantly, should be put in the tutorial section though imo - took me ages to find!