Implemented some methods for reuse to simplify things.