Added basic setup for service start and end. Purely for educatioinal purposes.