Buffering support added. New theta_rht() function.