Added session variable passing