Removes some unnecessary things