Changed double to num for volume.

It was causing an error that I hadn't had before. It complained that an `int`
is not a `double`, so there was a type error.