Edited form load code.