Implement q4