Great , that's exactly what I needed


One more thing , how do I move the code to a class ?