Added a select statement to debug