Implement consumer-function