Should this be $t_timestamp instead of $p_timestamp?