Added some convenience functionalities. Still has to be tested.