Thanks for that tip Stwert, it was okay for what I was doing (creating a control for a rig) but I thought it might not be best practice to do it for other things.