Refactored an interface