Added fixnegatives method, needs to be renamed and completed.