More elegent way