Adding the code with redundance of uglyness