App doesn't crash now. Commented away faulty code