Uses rest instead of slice.

Resolves #148