Adding start and stop functions