Same code but better indentation