Minor alignment refactoring
Added regex function to check if method is in list