Added temp_table implementation