Main OOP functions.