Version without any "helper function", but still somewhat ugly.