Move paths argument location.
Add registerFunction support.
Release 0.4.8