Simplified code - removed unnecessary logic.
Docs: Added information about parameter default value.