Added nn training stuff