Reading commands in server