Some usefull methods.