Changed function names initTable and createTable