Added basic gesture recording.