Moved pi define in wavelets