Adding functions for karma