Added BoxInTPA method

Also tweaked Modulo method