You should try making a IK handle to get more control, otherwise you will have to ask one of the more experienced people here. I've forgot how to make a new attribute.