Rewrite this bullshit