Broken code for Rauli to fix. Physics sux.