Added convenience function and some comments