Added some useful methods

Deleted useless trash code