Modified template to check for current version instead of max version