Working version without help and preferences