Updated rouge function to use doubles over integers