Added proper throws declaration