Added a convenience function