Main for all methods