Added cos
Fixed holding time and stuff.
Added signed regression.