Revert "Revert "Adding useful functions""

This reverts commit 156d44a83e586be110d5ad2db64e454ef073b372.