Adding new helper function