Added flat to core for controlling if melted should be restarted or not

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>