Add comments to make the code more reusable