Added some minor functions.