Add various functions

Signed-off-by: Mark Ludwig <mk.ludwig1@gmail.com>