Add missing requirements and remove unused arguments.