Use filter(=) instead of ]p
refactor remove unnecessary parameter
refactor use get instead of exists
Add no default key mappings variable
Add autoload function
Delete script local function and use autoload function