Some convenience tools