Time for a rewrite

Signed-off-by: ShadowChild <shadychild12@gmail.com>