Working on SDL interface