Added some dependencies and spectrum analysis code.