Reduced repeated code