Make function shorter