Added more checks for sat and sam input values