Forgot to declare some stuff in the __init__ function.