Rounding the required resources, some code tweaks.