Add implementation to trait function