Added small utility function.