Allow setting task stack size and priority