Further elaborated localtest script.