Added code in methods.