Some more code... Not so well written