Adding some useful methods