Base compoment and position_component implementation. Slow as fck.