Fix function name error, and add sensible defaults