Added some convenient functions