Implement both functions