Thanks everyone, this was exactly what I was looking for!