Methodized some functions