Added 2 utility functions