Use a merged function for better readability