Fixed scope problems to access methods.