Updated main methods.