Updated to %() syntax to fix deprecation warning