Fixed a bunch of stuff including attakcing.