Create params before setting properties, fixes #5