Finish defining the determinant. Probably still needs to be cleaned up