Static implementation

I wrote a static implementation, makes everything much more simple, and
more efficient.