Enabled to create multiple instances, fixes #1