Modenised code. Added backwards compatibility. Bumped sequel