Changed methods so they return true/false instead of void.