Updating structure of thread to include stack and other properties. Adding initial code with timer