Updated and more or less finalized header. Works in all sizes