Remove initiate_session() function, put code in manually