Extracting methods to be more concise