Adding some static helper functions.