Non-relevant code removed