Created convenience function.