Adding the ability to set default parameters.

Pretty simple, and hopefully you view it as useful too. Let me know if there's anything I need to tweak to get it merged.