Finished work on the theta functions. Moving to alpha-stage!