Load parameters dynamically

This fixes #1.