Implement constructor and resizer