Some convenience functions and syntax sugar