Swap extend arguments to allow assignment

Fix problem with extend options being overwritten by defaults.
Merge pull request #1 from outten45/master

Swap extend arguments to allow assignment