Described in detail in thesis.