Should probably remove the debug variable before going live.