Got apply_theta working, next is to finish the filter mask