Slightly improve the syntax, and reduce redundant process.

Signed-off-by: crynobone <crynobone@gmail.com>