Functions added[testing]

Functions have been added. Testing now.