Added new and possibly useful function