Added pattern, first step. Needs to reconnect all the functions

Now the new pattern is implemented but all the functions needs to be
reconnected.
First step, second commit