Add comments to tick function