Fresh initializer function that now also returns the instance.

This is also my first commit using PhpStorm rather than the GitHub client. Let's see how it goes!