Use stdlib functions instead of inline_template