Add usage and fix logic.