Add helpers from slim
Signed-off-by: Kristofer Ard <kristoferard@gmail.com>