Added rftw and some utility functions.