Added static constructor.

Fixed some stuff (I think).