Moved all Task properties code to constructor