Added some generic roofit functions