Mart, where do i put all this code? on the kx file?