Changed the constructor argument order to be more sensible.