Added a few DIRTY little functions.