Try to avoid to duplicate code.