Moved IsRunning around. Added initialiser.