Edited some codes.