Avoid code duplication