A four-wave mixing application for beam switching