Setting client key in main.c; everything works!