Added few generic functions