Removed repeating codes.