Implementing some methods