Reduced repetitive code