I am using a Nikon D40, I'm trying to get the effect that is seen often in Nightclub photography, where the subject is photographed with flash after the shutter has been open for a second. The end result being a solid subject with light trails and motion blur. Is this something to do with 'Rear curtain sync?' What do I need to do? How do I control the shutter speed before the flash?