Some missing/convenient utility functions for Mathematica