Patterns loading - from file and memory .