Adds implementation of both functions